class_name PlayerBasicAttack
extends State


func _init() -> void:
	super("basic_attack")


func _on_setup() -> void:
	add_component(TagStateComponent.new("player_tags", [GameplayTagLibrary.State_Ground_Attack_Basic]))


func _on_enter() -> void:
	owner.velocity = Vector2.ZERO
	

func _on_update(_delta: float) -> void:
	if not owner.animator.is_playing():
		parent.change_state("ghost", func(): pass)
